<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
    </head>
    <body>
        <div class="login">
            {% if user.is_authenticated %} 
            Welcome, {{ user.username }} <a href="/guestbook/logout">Logout</a>
            {% else %} 
            <a href="/guestbook/login">Login with your normal account</a>
            <br>
            <a href="/guestbook/signup">Sign up</a>
            <br>
            {% endif %} 
        </div>
        {% for object in object_list %} 
        <p>
            {{object.author.username}}: {{object.content}}
        </p>
        {% endfor %} <a href="/guestbook/sign/">Add entry</a>
    </body>
</html>
